package com.google.code.fulltank.price;

import org.joda.time.LocalDate;

/**
 * Fuel price database: lists fuel price updates over a time period.
 *
 * @author DL
 */
public interface FuelPriceHistory {
    
    /**
     * @param date   A date.
     * @return the updated per-litre fuel price on the given date. If the date
     * is not associated with new fuel price information, returns null.
     */
    public abstract Double getUpdatedFuelPrice(LocalDate date);

    /** @return the first date for which fuel price is available. */
    public abstract LocalDate getFirstDate();
    
    /** @return the last date for which fuel price is available. */
    public abstract LocalDate getLastDate();
}
